""" --- 第一个小游戏 --- """
import random

temp = input("猜一下小甲鱼现在心里想的是哪个数字：")
guess = int(temp)
access = 1
secret = random.randint(1,10)
print(secret)
if guess == secret:
    print("你是小甲鱼心里的蛔虫吗！")
    print("猜中了也没有奖励")
    access = 4
while (guess != secret and access <3):
    temp = input("猜错了，请重新输入吧：")
    guess = int(temp)
    if guess == secret:
        print("你是小甲鱼心里的蛔虫吗！")
        print("猜中了也没有奖励")
        break
    else:
        if guess < secret:
            print("猜错啦，小了！")
            access = access +1
        else :
            print("猜错啦，大了！")
            access=access+1
print("游戏结束，不玩啦！")
